package com.sczmgk.hotline.jpush;

import java.util.Observable;

/**
 * Created by Administrator on 2016/11/3.
 */

public  class JpushObserver extends Observable {
    private static JpushObserver instance;

    private JpushObserver(){

    }
    public static JpushObserver getInstance(){
        if(instance == null){
            instance = new JpushObserver();
        }
        return instance;
    }

    /**
     * 有新消息
     */
    public void hasNewMes(boolean hasNewMsg) {
        setChanged();

        notifyObservers(hasNewMsg);
    }
}
